﻿import matplotlib.pyplot as plt
import pandas as pd

edata = pd.read_csv('居民客户的用电缴费习惯分析 1.csv', encoding='GBK')
userid = edata['userid']
times = edata['times']
std_times = edata['std_times']
plt.plot(userid, times, 'b-', label="times")
plt.plot(userid, std_times, 'r--', label="std_times")
plt.text(userid[0], 6.4, std_times[0])
plt.title('volts')
plt.xlabel('userid')
plt.ylabel('times')
plt.legend(bbox_to_anchor=(0.05, 0.2), loc=2, borderaxespad=0.)
plt.show()
